#include <gtest/gtest.h>

#include <string>

#include "algorithm/common/include/removeDuplicateLetters.h"
TEST(TestRemoveLetter, RemoveDumplicateLetterSuilt) {
  std::string s1 = "bcabc";
  std::string res1 = "abc";

  std::string s2 = "cbacdcbc";
  std::string res2 = "acdb";

  std::string s3 = "ecbacba";
  std::string res3 = "eacb";
  EXPECT_EQ(removeDuplicateLetters(s1), res1);
  EXPECT_EQ(removeDuplicateLetters(s2), res2);
  EXPECT_EQ(removeDuplicateLetters(s3), res3);
}
